package com.qili.service.exam.impl;

import com.qili.base.mapper.BaseMapper;
import com.qili.base.service.impl.BaseServiceImpl;
import com.qili.entity.exam.ExExam;
import com.qili.entity.exam.dto.ExExamDTO;
import com.qili.mapper.exam.ExExamMapper;
import com.qili.service.exam.ExExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhangshuo
 * @date 2021-05-08
 */
@Service
public class ExExamServiceImpl extends BaseServiceImpl<ExExam,String> implements ExExamService {

    @Autowired
    ExExamMapper exExamMapper;
    @Override
    public BaseMapper<ExExam, String> getMappser() {
        return exExamMapper;
    }

    @Override
    public List<ExExamDTO> selectExam(ExExamDTO exam){
        return exExamMapper.selectExam(exam);
    }

    /**
     * @Description:考试系统批量修改
     * @param map
     * @Date:14:45 2021-08-23
     */
    @Override
    public int updateExam(Map map){
        return exExamMapper.updateExam(map);
    }

    @Override
    public int delFromRecycle(String examId) {
        return exExamMapper.delFromRecycle(examId);
    }

    @Override
    public int deleteFromRecycle(String[] ids) {
       return exExamMapper.deleteFromRecycle(ids);
    }

    @Override
    public int hyAll(String[] ids) {
        return exExamMapper.hyAll(ids);
    }
}
